package com.weareint.common.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 *
 * <pre>
 *     DTO最高类
 * </pre>
 *
 * @author wangg
 * @date 2021/7/109:38
 */
@Data
@EqualsAndHashCode(callSuper = true)
public abstract class AbstractDTO extends QueryByPageDto {

    private Long id;

    private String createTime;

    private String updateTime;

    private Long creator;

    private Long updater;

    public boolean wasNewObject() {
        return null == id || id <= 0;
    }
}
